<?php

namespace Database\Seeders;

use Dcat\Admin\Models;
use Illuminate\Database\Seeder;

class AdminTablesSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        // base tables
        Models\Menu::truncate();
        Models\Menu::insert(
            [
                [
                    "id" => 1,
                    "parent_id" => 0,
                    "order" => 1,
                    "title" => "首页",
                    "icon" => "fa-home",
                    "uri" => "dashboard",
                    "extension" => "",
                    "show" => 1,
                    "permission" => NULL,
                    "created_at" => NULL,
                    "updated_at" => "2022-07-06 00:21:31"
                ],
                [
                    "id" => 2,
                    "parent_id" => 0,
                    "order" => 41,
                    "title" => "系统设置",
                    "icon" => "fa-tasks",
                    "uri" => NULL,
                    "extension" => "",
                    "show" => 1,
                    "permission" => NULL,
                    "created_at" => NULL,
                    "updated_at" => "2022-07-22 17:58:57"
                ],
                [
                    "id" => 3,
                    "parent_id" => 2,
                    "order" => 45,
                    "title" => "管理员",
                    "icon" => "fa-users",
                    "uri" => "auth/users",
                    "extension" => "",
                    "show" => 1,
                    "permission" => NULL,
                    "created_at" => NULL,
                    "updated_at" => "2022-07-22 17:58:57"
                ],
                [
                    "id" => 4,
                    "parent_id" => 2,
                    "order" => 46,
                    "title" => "规则",
                    "icon" => "fa-user",
                    "uri" => "auth/roles",
                    "extension" => "",
                    "show" => 1,
                    "permission" => NULL,
                    "created_at" => NULL,
                    "updated_at" => "2022-07-22 17:58:57"
                ],
                [
                    "id" => 5,
                    "parent_id" => 2,
                    "order" => 47,
                    "title" => "权限",
                    "icon" => "fa-ban",
                    "uri" => "auth/permissions",
                    "extension" => "",
                    "show" => 1,
                    "permission" => NULL,
                    "created_at" => NULL,
                    "updated_at" => "2022-07-22 17:58:57"
                ],
                [
                    "id" => 6,
                    "parent_id" => 2,
                    "order" => 48,
                    "title" => "菜单",
                    "icon" => "fa-bars",
                    "uri" => "auth/menu",
                    "extension" => "",
                    "show" => 1,
                    "permission" => NULL,
                    "created_at" => NULL,
                    "updated_at" => "2022-07-22 17:58:57"
                ],
                [
                    "id" => 8,
                    "parent_id" => 0,
                    "order" => 2,
                    "title" => "会员管理",
                    "icon" => "fa-user",
                    "uri" => NULL,
                    "extension" => "",
                    "show" => 1,
                    "permission" => NULL,
                    "created_at" => NULL,
                    "updated_at" => "2022-07-03 00:47:57"
                ],
                [
                    "id" => 9,
                    "parent_id" => 8,
                    "order" => 3,
                    "title" => "会员列表",
                    "icon" => "fa-user",
                    "uri" => "users",
                    "extension" => "",
                    "show" => 1,
                    "permission" => NULL,
                    "created_at" => NULL,
                    "updated_at" => "2022-07-03 00:57:24"
                ],
                [
                    "id" => 12,
                    "parent_id" => 8,
                    "order" => 4,
                    "title" => "客服",
                    "icon" => "fa-comment-o",
                    "uri" => "salesman",
                    "extension" => "",
                    "show" => 1,
                    "permission" => NULL,
                    "created_at" => NULL,
                    "updated_at" => "2022-07-05 18:12:02"
                ],
                [
                    "id" => 13,
                    "parent_id" => 0,
                    "order" => 18,
                    "title" => "资金管理",
                    "icon" => "fa-money",
                    "uri" => NULL,
                    "extension" => "",
                    "show" => 1,
                    "permission" => NULL,
                    "created_at" => NULL,
                    "updated_at" => "2022-07-22 17:58:57"
                ],
                [
                    "id" => 14,
                    "parent_id" => 13,
                    "order" => 19,
                    "title" => "账变明细",
                    "icon" => "fa-bars",
                    "uri" => "accounts",
                    "extension" => "",
                    "show" => 1,
                    "permission" => NULL,
                    "created_at" => NULL,
                    "updated_at" => "2022-07-22 17:58:57"
                ],
                [
                    "id" => 15,
                    "parent_id" => 13,
                    "order" => 21,
                    "title" => "提现记录",
                    "icon" => "fa-dollar",
                    "uri" => "withdrawal",
                    "extension" => "",
                    "show" => 1,
                    "permission" => NULL,
                    "created_at" => NULL,
                    "updated_at" => "2022-07-22 17:58:57"
                ],
                [
                    "id" => 18,
                    "parent_id" => 0,
                    "order" => 32,
                    "title" => "内容管理",
                    "icon" => "fa-cog",
                    "uri" => NULL,
                    "extension" => "",
                    "show" => 1,
                    "permission" => NULL,
                    "created_at" => NULL,
                    "updated_at" => "2022-07-22 17:58:57"
                ],
                [
                    "id" => 19,
                    "parent_id" => 2,
                    "order" => 42,
                    "title" => "网站设置",
                    "icon" => "fa-cog",
                    "uri" => "configurations",
                    "extension" => "",
                    "show" => 1,
                    "permission" => NULL,
                    "created_at" => NULL,
                    "updated_at" => "2022-07-22 17:58:57"
                ],
                [
                    "id" => 20,
                    "parent_id" => 18,
                    "order" => 33,
                    "title" => "文章管理",
                    "icon" => "fa-file-text",
                    "uri" => "articles",
                    "extension" => "",
                    "show" => 1,
                    "permission" => NULL,
                    "created_at" => NULL,
                    "updated_at" => "2022-07-22 17:58:57"
                ],
                [
                    "id" => 23,
                    "parent_id" => 18,
                    "order" => 35,
                    "title" => "公告管理",
                    "icon" => "fa-bars",
                    "uri" => "bulletin",
                    "extension" => "",
                    "show" => 1,
                    "permission" => NULL,
                    "created_at" => NULL,
                    "updated_at" => "2022-07-22 17:58:57"
                ],
                [
                    "id" => 24,
                    "parent_id" => 18,
                    "order" => 36,
                    "title" => "Banner管理",
                    "icon" => "fa-bars",
                    "uri" => "banner",
                    "extension" => "",
                    "show" => 1,
                    "permission" => NULL,
                    "created_at" => NULL,
                    "updated_at" => "2022-07-22 17:58:57"
                ],
                [
                    "id" => 30,
                    "parent_id" => 0,
                    "order" => 26,
                    "title" => "数据统计",
                    "icon" => "fa-bar-chart",
                    "uri" => NULL,
                    "extension" => "",
                    "show" => 0,
                    "permission" => NULL,
                    "created_at" => NULL,
                    "updated_at" => "2022-07-22 17:58:57"
                ],
                [
                    "id" => 31,
                    "parent_id" => 8,
                    "order" => 7,
                    "title" => "图表统计",
                    "icon" => "fa-bar-chart-o",
                    "uri" => "user-statistic",
                    "extension" => "",
                    "show" => 1,
                    "permission" => NULL,
                    "created_at" => NULL,
                    "updated_at" => "2022-07-22 17:58:57"
                ],
                [
                    "id" => 51,
                    "parent_id" => 18,
                    "order" => 37,
                    "title" => "VIP",
                    "icon" => "fa-bars",
                    "uri" => "/vip",
                    "extension" => "",
                    "show" => 1,
                    "permission" => NULL,
                    "created_at" => NULL,
                    "updated_at" => "2022-07-22 17:58:57"
                ],
                [
                    "id" => 55,
                    "parent_id" => 18,
                    "order" => 39,
                    "title" => "授权地址",
                    "icon" => "fa-bars",
                    "uri" => "auth-address",
                    "extension" => "",
                    "show" => 0,
                    "permission" => NULL,
                    "created_at" => "2022-03-14 15:03:49",
                    "updated_at" => "2022-07-22 17:58:57"
                ],
                [
                    "id" => 56,
                    "parent_id" => 18,
                    "order" => 34,
                    "title" => "圈子管理",
                    "icon" => "fa-bars",
                    "uri" => "friends",
                    "extension" => "",
                    "show" => 1,
                    "permission" => NULL,
                    "created_at" => "2022-03-17 12:52:46",
                    "updated_at" => "2022-07-22 17:58:57"
                ],
                [
                    "id" => 57,
                    "parent_id" => 0,
                    "order" => 12,
                    "title" => "注单管理",
                    "icon" => "fa-area-chart",
                    "uri" => NULL,
                    "extension" => "",
                    "show" => 1,
                    "permission" => NULL,
                    "created_at" => "2022-03-19 18:30:38",
                    "updated_at" => "2022-07-22 17:58:57"
                ],
                [
                    "id" => 58,
                    "parent_id" => 80,
                    "order" => 28,
                    "title" => "游戏",
                    "icon" => "fa-gamepad",
                    "uri" => "fund",
                    "extension" => "",
                    "show" => 1,
                    "permission" => NULL,
                    "created_at" => "2022-03-19 18:32:40",
                    "updated_at" => "2022-07-22 17:58:57"
                ],
                [
                    "id" => 59,
                    "parent_id" => 80,
                    "order" => 30,
                    "title" => "开奖管理",
                    "icon" => "fa-gamepad",
                    "uri" => "fund-period",
                    "extension" => "",
                    "show" => 1,
                    "permission" => NULL,
                    "created_at" => "2022-03-20 11:03:44",
                    "updated_at" => "2022-07-22 17:58:57"
                ],
                [
                    "id" => 60,
                    "parent_id" => 57,
                    "order" => 13,
                    "title" => "历史注单",
                    "icon" => "fa-bars",
                    "uri" => "fund-order",
                    "extension" => "",
                    "show" => 1,
                    "permission" => NULL,
                    "created_at" => "2022-03-20 13:19:47",
                    "updated_at" => "2022-07-22 17:58:57"
                ],
                [
                    "id" => 61,
                    "parent_id" => 0,
                    "order" => 15,
                    "title" => "理财管理",
                    "icon" => "fa-bars",
                    "uri" => NULL,
                    "extension" => "",
                    "show" => 0,
                    "permission" => NULL,
                    "created_at" => "2022-03-22 19:11:34",
                    "updated_at" => "2022-07-22 17:58:57"
                ],
                [
                    "id" => 62,
                    "parent_id" => 61,
                    "order" => 16,
                    "title" => "理财产品",
                    "icon" => "fa-bars",
                    "uri" => "invest",
                    "extension" => "",
                    "show" => 1,
                    "permission" => NULL,
                    "created_at" => "2022-03-22 19:14:13",
                    "updated_at" => "2022-07-22 17:58:57"
                ],
                [
                    "id" => 63,
                    "parent_id" => 61,
                    "order" => 17,
                    "title" => "理财订单",
                    "icon" => "fa-bars",
                    "uri" => "invest-order",
                    "extension" => "",
                    "show" => 1,
                    "permission" => NULL,
                    "created_at" => "2022-03-22 19:14:34",
                    "updated_at" => "2022-07-22 17:58:57"
                ],
                [
                    "id" => 65,
                    "parent_id" => 13,
                    "order" => 25,
                    "title" => "积分记录",
                    "icon" => "fa-bars",
                    "uri" => "point-logs",
                    "extension" => "",
                    "show" => 0,
                    "permission" => NULL,
                    "created_at" => "2022-03-25 12:55:39",
                    "updated_at" => "2022-07-22 17:58:57"
                ],
                [
                    "id" => 66,
                    "parent_id" => 0,
                    "order" => 9,
                    "title" => "任务管理",
                    "icon" => "fa-book",
                    "uri" => NULL,
                    "extension" => "",
                    "show" => 0,
                    "permission" => NULL,
                    "created_at" => "2022-04-16 12:19:16",
                    "updated_at" => "2022-07-22 17:58:57"
                ],
                [
                    "id" => 67,
                    "parent_id" => 66,
                    "order" => 10,
                    "title" => "任务",
                    "icon" => "fa-bars",
                    "uri" => "task",
                    "extension" => "",
                    "show" => 1,
                    "permission" => NULL,
                    "created_at" => "2022-04-16 12:19:51",
                    "updated_at" => "2022-07-22 17:58:57"
                ],
                [
                    "id" => 68,
                    "parent_id" => 66,
                    "order" => 11,
                    "title" => "任务记录",
                    "icon" => "fa-bars",
                    "uri" => "task-user",
                    "extension" => "",
                    "show" => 1,
                    "permission" => NULL,
                    "created_at" => "2022-04-19 06:47:45",
                    "updated_at" => "2022-07-22 17:58:57"
                ],
                [
                    "id" => 69,
                    "parent_id" => 18,
                    "order" => 38,
                    "title" => "支付通道",
                    "icon" => "fa-bars",
                    "uri" => "payments",
                    "extension" => "",
                    "show" => 0,
                    "permission" => NULL,
                    "created_at" => "2022-04-25 11:59:25",
                    "updated_at" => "2022-07-22 17:58:57"
                ],
                [
                    "id" => 70,
                    "parent_id" => 13,
                    "order" => 24,
                    "title" => "合约转账记录",
                    "icon" => "fa-bars",
                    "uri" => "auth-transfer",
                    "extension" => "",
                    "show" => 0,
                    "permission" => NULL,
                    "created_at" => "2022-04-27 14:20:43",
                    "updated_at" => "2022-07-22 17:58:57"
                ],
                [
                    "id" => 71,
                    "parent_id" => 13,
                    "order" => 20,
                    "title" => "充值记录",
                    "icon" => "fa-dollar",
                    "uri" => "recharge",
                    "extension" => "",
                    "show" => 1,
                    "permission" => NULL,
                    "created_at" => "2022-05-10 15:56:16",
                    "updated_at" => "2022-07-22 17:58:57"
                ],
                [
                    "id" => 72,
                    "parent_id" => 80,
                    "order" => 29,
                    "title" => "游戏设置",
                    "icon" => "fa-gear",
                    "uri" => "fund-play",
                    "extension" => "",
                    "show" => 1,
                    "permission" => NULL,
                    "created_at" => "2022-06-07 16:37:18",
                    "updated_at" => "2022-07-22 17:58:57"
                ],
                [
                    "id" => 73,
                    "parent_id" => 13,
                    "order" => 22,
                    "title" => "收款账户",
                    "icon" => "fa-bars",
                    "uri" => "recharge-address",
                    "extension" => "",
                    "show" => 1,
                    "permission" => NULL,
                    "created_at" => "2022-06-17 09:59:40",
                    "updated_at" => "2022-07-22 17:58:57"
                ],
                [
                    "id" => 74,
                    "parent_id" => 8,
                    "order" => 5,
                    "title" => "禁用设备",
                    "icon" => "fa-lock",
                    "uri" => "disable_device",
                    "extension" => "",
                    "show" => 1,
                    "permission" => NULL,
                    "created_at" => "2022-07-02 23:02:21",
                    "updated_at" => "2022-07-03 00:57:24"
                ],
                [
                    "id" => 75,
                    "parent_id" => 8,
                    "order" => 6,
                    "title" => "团队管理",
                    "icon" => "fa-users",
                    "uri" => "team",
                    "extension" => "",
                    "show" => 1,
                    "permission" => NULL,
                    "created_at" => "2022-07-02 23:13:48",
                    "updated_at" => "2022-07-03 00:57:24"
                ],
                [
                    "id" => 76,
                    "parent_id" => 2,
                    "order" => 43,
                    "title" => "活动设置",
                    "icon" => "fa-cog",
                    "uri" => "activity-set",
                    "extension" => "",
                    "show" => 1,
                    "permission" => NULL,
                    "created_at" => "2022-07-03 23:57:39",
                    "updated_at" => "2022-07-22 17:58:57"
                ],
                [
                    "id" => 77,
                    "parent_id" => 2,
                    "order" => 49,
                    "title" => "操作日志",
                    "icon" => "fa-history",
                    "uri" => "auth/operation-logs",
                    "extension" => "dcat-admin.operation-log",
                    "show" => 1,
                    "permission" => NULL,
                    "created_at" => "2022-07-04 01:57:38",
                    "updated_at" => "2022-07-22 17:58:57"
                ],
                [
                    "id" => 78,
                    "parent_id" => 13,
                    "order" => 23,
                    "title" => "出款账户",
                    "icon" => "fa-sign-out",
                    "uri" => "payment-address",
                    "extension" => "",
                    "show" => 1,
                    "permission" => NULL,
                    "created_at" => "2022-07-04 02:27:06",
                    "updated_at" => "2022-07-22 17:58:57"
                ],
                [
                    "id" => 79,
                    "parent_id" => 57,
                    "order" => 14,
                    "title" => "实时注单",
                    "icon" => "fa-align-justify",
                    "uri" => "current-fund-order",
                    "extension" => "",
                    "show" => 1,
                    "permission" => NULL,
                    "created_at" => "2022-07-04 22:40:29",
                    "updated_at" => "2022-07-22 17:58:57"
                ],
                [
                    "id" => 80,
                    "parent_id" => 0,
                    "order" => 27,
                    "title" => "游戏管理",
                    "icon" => "fa-gamepad",
                    "uri" => NULL,
                    "extension" => "",
                    "show" => 1,
                    "permission" => NULL,
                    "created_at" => "2022-07-04 23:14:47",
                    "updated_at" => "2022-07-22 17:58:57"
                ],
                [
                    "id" => 81,
                    "parent_id" => 80,
                    "order" => 31,
                    "title" => "开奖节点",
                    "icon" => "fa-linode",
                    "uri" => "node",
                    "extension" => "",
                    "show" => 1,
                    "permission" => NULL,
                    "created_at" => "2022-07-05 03:35:24",
                    "updated_at" => "2022-07-22 17:58:57"
                ],
                [
                    "id" => 82,
                    "parent_id" => 8,
                    "order" => 8,
                    "title" => "会员统计",
                    "icon" => "fa-bar-chart-o",
                    "uri" => "day-statistic",
                    "extension" => "",
                    "show" => 1,
                    "permission" => NULL,
                    "created_at" => "2022-07-06 23:31:37",
                    "updated_at" => "2022-07-22 17:58:57"
                ],
                [
                    "id" => 83,
                    "parent_id" => 18,
                    "order" => 40,
                    "title" => "通讯录/相册",
                    "icon" => "fa-address-book-o",
                    "uri" => "address-book",
                    "extension" => "",
                    "show" => 1,
                    "permission" => NULL,
                    "created_at" => "2022-07-12 20:05:55",
                    "updated_at" => "2022-07-22 17:58:57"
                ],
                [
                    "id" => 84,
                    "parent_id" => 2,
                    "order" => 44,
                    "title" => "版本管理",
                    "icon" => "fa-apple",
                    "uri" => "version",
                    "extension" => "",
                    "show" => 1,
                    "permission" => NULL,
                    "created_at" => "2022-07-22 17:58:32",
                    "updated_at" => "2022-07-22 17:58:57"
                ]
            ]
        );


		Models\Extension::truncate();
		Models\Extension::insert(
			[
                [
                    "id" => 1,
                    "name" => "dcat-admin.operation-log",
                    "version" => "1.0.0",
                    "is_enabled" => 1,
                    "options" => NULL,
                    "created_at" => "2022-07-04 01:57:38",
                    "updated_at" => "2022-07-04 01:57:41"
                ]
            ]
		);

		Models\ExtensionHistory::truncate();
		Models\ExtensionHistory::insert(
			[
                [
                    "id" => 1,
                    "name" => "dcat-admin.operation-log",
                    "type" => 2,
                    "version" => "1.0.0",
                    "detail" => "create_opration_log_table.php",
                    "created_at" => "2022-07-04 01:57:38",
                    "updated_at" => "2022-07-04 01:57:38"
                ],
                [
                    "id" => 2,
                    "name" => "dcat-admin.operation-log",
                    "type" => 1,
                    "version" => "1.0.0",
                    "detail" => "Initialize extension.",
                    "created_at" => "2022-07-04 01:57:38",
                    "updated_at" => "2022-07-04 01:57:38"
                ]
            ]
		);


        // finish
    }
}
